
package day01;

/**
 *
 * @author Administrator
 */
public class Car {
    private int modelNo;
    private String color;
    private String make;
  
    /*
     * Constructor
     */
    
    public Car(int modelNo, String color, String make){
        this.modelNo = modelNo;
        this.color   = color;
        this.make    = make;    
    }
    
    @Override
    public String toString(){
      return this.modelNo + ", " + this.color + ", "+ this.make;
    }
    
    /*
     * Method drive
     */   
    
    public void drive(){
     System.out.println("You are driving.....");    
    }
    
    
    
}
